#pragma once
#include "HeaderCtrlEx.h"
#include <afxcmn.h>

class CListCtrlEx :
    public CListCtrl
{
    DECLARE_DYNAMIC(CListCtrlEx)
    HeaderCtrlEx m_HeaderCtrl;

protected:
    DECLARE_MESSAGE_MAP()
    afx_msg void OnNMCustomdraw(NMHDR* pNMHDR, LRESULT* pResult);
    virtual void PreSubclassWindow();

public:
    void RegisterHeaderCtrl();
};